package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from cl_user where id = #{id}")
    User getInfo(Integer id);

    @Select("select * from cl_user where username=#{username} and  password=#{password}")
    User login(User user);
}
